package com.sooth.system.role.table;

import com.dream.system.annotation.Column;
import com.dream.system.annotation.Id;
import com.dream.system.annotation.Table;
import com.sooth.common.dream.annotation.IgnorePermission;
import lombok.Data;

import java.sql.Types;

@Data
@IgnorePermission
@Table("sys_role_dept")
public class SysRoleDept {
    /**
     * 角色ID
     */
    @Id
    @Column(value = "role_id", jdbcType = Types.BIGINT)
    private Long roleId;
    /**
     * 部门ID
     */
    @Id
    @Column(value = "dept_id", jdbcType = Types.BIGINT)
    private Long deptId;

    public SysRoleDept() {
    }

    public SysRoleDept(Long roleId, Long deptId) {
        this.roleId = roleId;
        this.deptId = deptId;
    }
}
